<?php
namespace Shopmodule\Controller;
use Think\Controller;
class QiandaoController extends ExtendController {
	public function index(){
		$usernick = urldecode_utf8(I("usernick"));
		$sid = I("sid");
		$top_sign = I("top_sign");
		$sign = I("sign");
		$ts = I("ti");
		if($usernick && (md5($sid."|".$usernick."|".$top_sign."|"."ntPfLBg".$ts)==$sign) && (time()-$ts<3600)){
			$Seeds = D("QianDao","Model");
			$Seeds->usernick = $usernick;
			$Seeds->sid = $sid; 
			print_r($Seeds);
			// $data = $Seeds->qiandao();
			$data["login"]=true;
		}else{
			$data["login"]=false;
		}
		
		$this->ajaxReturn($data);
	}
}